package com.example.yls.demoa;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.webkit.JavascriptInterface;

/**
 * Created by yls on 2019/3/4.
 */

public class Jump {
    private Context context;
    public Jump(Context context){
        this.context = context;
    }
@JavascriptInterface
    public void jump(){
        Intent intent = new Intent(context, ActivityB.class);
        context.startActivity(intent);
    }

}
